package hd.util.adapter;

/**
 * holder
 * <p/>
 * Created by Haidy on 14/11/9.
 */
public abstract class BaseViewHolder<T, K> {

    private K holder;

    public void setHolder(K holder) {
        this.holder = holder;
    }

    public K getHolder() {
        return holder;
    }

    /**
     * 装载数据
     *
     * @param data     数据
     * @param position 位置
     */
    public abstract void loadData(K holder, T data, int position);
}
